/*
*  LLLog.h
*  
*
*  Created by Alexander Trutchenko on 11/02/12.
*  Copyright 2012 Free Team. All rights reserved.
*
*/

#ifndef __LL_Log_h__
#define __LL_Log_h__

#include "lid_lib/src/config/LLConfig.h"

namespace lidlib {

#define LL_MAX_LEN (16*1024 + 1)


void LLLog(const char * pszFormat, ...);

} // namespace lidlib


/// The max length of CCLog message.
#define LL_MAX_LOG_LEN (16*1024 + 1)


#if !defined(LL_LOG_LEVEL) || LL_LOG_LEVEL == 0

#define LLLOG(...)              
#define LLLOGWARNING(...)         
#define LLLOGERROR(...)         

#elif LL_LOG_LEVEL == 1

#define LLLOG(format, ...)    
#define LLLOGWARNING(format,...)  
#define LLLOGERROR(format,...)   lidlib::LLLog(format, ##__VA_ARGS__)

#elif LL_LOG_LEVEL == 2

#define LLLOG(format, ...)			
#define LLLOGWARNING(format,...)	lidlib::LLLog(format, ##__VA_ARGS__)
#define LLLOGERROR(format,...)		lidlib::LLLog(format, ##__VA_ARGS__)

#elif LL_LOG_LEVEL > 2

#define LLLOG(format, ...)			lidlib::LLLog(format, ##__VA_ARGS__)
#define LLLOGWARNING(format,...)	lidlib::LLLog(format, ##__VA_ARGS__)
#define LLLOGERROR(format,...)		lidlib::LLLog(format, ##__VA_ARGS__)

#endif // COCOS2D_DEBUG

#endif //__LL_Log_h__
